import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    close: false
  },
  mutations: {
	SETCLOSE (state, val) {
		console.log('close',val)
		state.close = val
	}
  },
  actions: {
	'setClose': (context, val) => {
		context.commit('SETCLOSE', val)
	}
  },
  modules: {
  }
})
